package com.training.java.core.equals;

public class EqualLaptopDemo {

	public static void main(String[] args) {

		Laptop laptop1 = new Laptop("DELL","Inspiron");
		Laptop laptop2 = new Laptop("DELL","Inspiron");
		
		boolean equalsLaptop = laptop1.equals(laptop2);
		boolean equalsLT = laptop1 == laptop2;
	
		System.out.println("Laptops are identical = " + equalsLaptop );
		System.out.println("Laptops are identical = " + equalsLT );
	}

}
